package com.zhong.gang.app.db;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.List;

@DatabaseTable(tableName = "UserBean")
public class UserBean {

    /**
     * id : 2
     * createTime : 2019-12-22T17:23:13.000+0000
     * updateTime : 2019-12-23T04:27:31.453+0000
     * version : 10
     * deleted : false
     * createTimestamp : 1577035393000
     * updateTimestamp : 1577075251453
     * name : admin
     * saltValue : null
     * password : null
     * token : d788479dc0ae4fccb7a34a96a4053c27
     * materialYardId : 2
     * phone : null
     * roleId : 4
     */
    @DatabaseField(generatedId = true)
    private int _id;
    @DatabaseField(columnName = "isLogin")
    private boolean isLogin;
    @DatabaseField(columnName = "id")
    private int id;
    @DatabaseField(columnName = "version")
    private int version;
    @DatabaseField(columnName = "deleted")
    private boolean deleted;
    @DatabaseField(columnName = "phone")
    private String phone;
    @DatabaseField(columnName = "name")
    private String name;
    @DatabaseField(columnName = "openid")
    private String openid;
    @DatabaseField(columnName = "saltValue")
    private String saltValue;
    @DatabaseField(columnName = "password")
    private String password;
    @DatabaseField(columnName = "token")
    private String token;
    @DatabaseField(columnName = "qrcodeUrl")
    private String qrcodeUrl;
    @DatabaseField(columnName = "steelMillId")
    private int steelMillId;
    @DatabaseField(columnName = "materialYardId")
    private int materialYardId;
    @DatabaseField(columnName = "idCard")
    private String idCard;
    @DatabaseField(columnName = "source")
    private int source;
    @DatabaseField(columnName = "materialYardName")
    private String materialYardName;
    @DatabaseField(columnName = "steelMillName")
    private String steelMillName;
    @DatabaseField(columnName = "isRealNameAuth")
    private String isRealNameAuth;
    @DatabaseField(columnName = "realNameAuth")
    private boolean realNameAuth;
    private List<RoleListBean> roleList;
    @DatabaseField(columnName = "roleList")
    private String roleStr;


    public boolean isLogin() {
        return isLogin;
    }

    public void setLogin(boolean login) {
        isLogin = login;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getSaltValue() {
        return saltValue;
    }

    public void setSaltValue(String saltValue) {
        this.saltValue = saltValue;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getQrcodeUrl() {
        return qrcodeUrl;
    }

    public void setQrcodeUrl(String qrcodeUrl) {
        this.qrcodeUrl = qrcodeUrl;
    }

    public int getSteelMillId() {
        return steelMillId;
    }

    public void setSteelMillId(int steelMillId) {
        this.steelMillId = steelMillId;
    }

    public int getMaterialYardId() {
        return materialYardId;
    }

    public void setMaterialYardId(int materialYardId) {
        this.materialYardId = materialYardId;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public String getMaterialYardName() {
        return materialYardName;
    }

    public void setMaterialYardName(String materialYardName) {
        this.materialYardName = materialYardName;
    }

    public String getSteelMillName() {
        return steelMillName;
    }

    public void setSteelMillName(String steelMillName) {
        this.steelMillName = steelMillName;
    }

    public String getIsRealNameAuth() {
        return isRealNameAuth;
    }

    public void setIsRealNameAuth(String isRealNameAuth) {
        this.isRealNameAuth = isRealNameAuth;
    }

    public boolean isRealNameAuth() {
        return realNameAuth;
    }

    public void setRealNameAuth(boolean realNameAuth) {
        this.realNameAuth = realNameAuth;
    }

    public List<RoleListBean> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<RoleListBean> roleList) {
        this.roleList = roleList;
    }

    public String getRoleStr() {
        return roleStr;
    }

    public void setRoleStr(String roleStr) {
        this.roleStr = roleStr;
    }
}
